package com.virgo.demo.market.domain.bo;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdvBo implements Serializable {

	@Serial
	private static final long serialVersionUID = 1L;

	private Long id;

	@NotBlank(message = "广告名称不能为空")
	private String name;

	@NotBlank(message = "广告位标识不能为空")
	private String positionCode;

	@NotBlank(message = "跳转链接不能为空")
	private String link;

	@NotBlank(message = "广告内容不能为空")
	private String content;

	@NotBlank(message = "开始时间不能为空")
	private String startTime;

	@NotBlank(message = "结束时间不能为空")
	private String endTime;

}